from enum import Enum, unique


# @unique
class TranslateLanguage(Enum):
    EN = '英语'
    CN = '汉语'

    @staticmethod
    def getLanguage(name):
        for language in TranslateLanguage:
            print(language.value)
            if language.name == name:
                return language.value
